package com.google.code.coma.producer;

import com.google.code.coma.domain.Type;
import com.google.code.coma.producer.publisher.PartPublisher;
import com.google.code.coma.producer.publisher.RmiPartPublisher;

/**
 * RMI producer
 *
 * @author Bernhard Nickel, bernhard.nickel@gmail.co
 */
public class RmiProducer extends StandaloneProducer {
	public RmiProducer(String factoryId, Integer amount, Type type, Integer faultPercentage) {
		super(factoryId, amount, type, faultPercentage, new RmiPartPublisher(factoryId), true);
	}

	public RmiProducer(String factoryId, Integer amount, Type type, Integer faultPercentage, boolean sleep) {
		super(factoryId, amount, type, faultPercentage, new RmiPartPublisher(factoryId), sleep);
	}
}
